package com.spsy.pay.controller.mq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: liuzhiping
 * @date: 2025/9/23 14:09
 **/
@RestController
@Slf4j
@RequestMapping("/mq")
public class RabbitmqSendCompanyController {

    @Autowired
    private RabbitTemplate rabbitTemplate;

//    @GetMapping(value = "/send")
//    public R send() throws Exception{
//        log.info("send..........");
//
//        CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
//
//        this.rabbitTemplate.convertAndSend(RabbitmqConstantCompany.MQ_EXCHANGE,RabbitmqConstantCompany.MQ_ROUTTING,"2302a翟亮超-测试rabbitmq消息",correlationData);
//
//        return R.ok();
//    }

}